<?php
/**
 * ShopEx licence
 *
 * -------
 * -------
 */


class operatorlogmanage_application_register extends base_application_prototype_xml
{
    var $xml='operatorlogmanage.xml';
    var $xsd='operatorlogmanage_content';
    var $path = 'register';
    
    public function current(){
        $this->current = $this->iterator()->current();
        return $this;
    }

    final public function install()
    {
        //$this->target_app->app_id;
        $data = $this->current;
        $data['app'] = $this->target_app->app_id;
        app::get('operatorlogmanage')->model('register')->insert($data);
    }//End Function


    function clear_by_app($app_id){
        if(!$app_id){
            return false;
        }
        app::get('operatorlogmanage')->model('register')->delete(array('app'=>$app_id));
    }

}//End Class